package com.inspinia.message.dao;

import com.inspinia.base.dao.BaseDao;
import com.inspinia.message.common.model.NoticeAddressee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 通知收件人dao
 * Created by veblen on 2018-1-8.
 */
public interface NoticeAddresseeDao extends BaseDao<NoticeAddressee> {

    int deleteByNotice(@Param("noticeId") long noticeId);

    int batchInsert(List<NoticeAddressee> list);

    int setPushed(@Param("ids") List<Long> ids);

    List<NoticeAddressee> findUnPushed(@Param("noticeId") Long noticeId);

    void deleteDayBefore(int day);
}